package main

import (
	_ "video/routers"

	beego "github.com/beego/beego/v2/server/web"

	"github.com/beego/beego/v2/client/orm"

	_ "github.com/go-sql-driver/mysql"
)

func main() {
	// beego.SetStaticPath("/download", "download")
	defaultdb, _ := beego.AppConfig.String("defaultdb")
	orm.RegisterDriver("mysql", orm.DRMySQL)
	orm.RegisterDataBase("default", "mysql", defaultdb)
	beego.Run()

}
